"""
    @author yu_chen
    @date  
    @todo 
"""

import requests

response = requests.get(
    "http://http.tiqu.alicdns.com/getip3?num=19&type=1&pro=&city=0&yys=0&port=1&pack=65165&ts=0&ys=0&cs=0&lb=1&sb=0"
    "&pb=4&mr=1&regions=")
str_array = response.content.decode()
for s in str.split("\n"):
    print(s)

proxy = '58.218.200.253:6651'  # 本地代理
# proxy='username:password@123.58.10.36:8080'
proxies = {
    'http': 'http://' + proxy,
}
try:
    response = requests.get('http://httpbin.org/get', proxies=proxies)
    print(response.text)
except requests.exceptions.ConnectionError as e:
    print('错误:', e.args)
